import request from '@/utils/request'

export function login(data) {
  return request({
    // headers: { 'content-type': 'application/x-www-form-urlencoded' },
    url: '/account/site/login',
    method: 'post',
    data
  })
}

export function getInfo(params) {
  return request({
    url: '/account/site/tenant-info',
    method: 'get',
    params
  })
}

export function logout(params) {
  return request({
    url: '/account/site/logout',
    method: 'get',
    params
  })
}

export function getCaptcha(params) {
  return request({
    url: '/account/site/captcha',
    method: 'get',
    params
  })
}

// test
export function getWeather(params) {
  return request({
    url: '/getWeather',
    method: 'get',
    params
  })
}
